<include file="User:header"/>
<link type="text/css" rel="stylesheet" href="../Public/css/style_ldy.css" />
<script type="text/javascript" src="../Public/js/user.js"></script>

<div class="ba2">

	      <div class="slide_a" >
           <div>
	        <ul>
	          <li class="bg_img">
              
              <div class="sjsin">

<style>
.yuan{
	behavior: url(../Public/PIE.htc);
	z-index:999;
	position:relative;
	
	}

</style>
      <div class="skt2" style="width: 257px;padding-left:60px;  text-align: center;height: 0px;  padding-top: 20px; "></div>

          <div style="text-align:center; margin-top:20px;">
          <img  class="yuan" style="border-radius:50%; width:100px; height:100px;"  src="{$avatar}"/>
             <p id="realname" style=" font-size:24px; font-weight:bold; color:#FFF; margin-top:10px;">{$username}</p>
          
          </div>
         <div class="sjsinfo">
           <ul>
              <li><b>毕业院校：</b><span>{$school}</span></li>
              <li>
                <b>设计经验：</b>
                <span>
                  <?php  $_result=M("Type")->field("*")->where("parentid=25")->select(); foreach($_result as $key=>$r){ echo $experience==$r['typeid'] ?  $r['name']: ' '; }?>
                </span>
              
              </li>
              <li><b>擅长空间：</b>
                  <span><?php $itemType=explode(",",$itemType); ?>
                      <YP:list name="Label" where="genre=17" key="k" id="r" limit="50">
                      {if $k!=1}<?php echo in_array($r['id'],$itemType) ? ' | ' : '';?>{/if}
                      <?php echo in_array($r['id'],$itemType) ? $r['title'] : '';?>
                      </YP:list>
                  </span>
              </li>
              <li><b>所在地&nbsp;&nbsp;：</b><span> {$province|jgarea=###} {$city|jgarea=###}</span>    </li>
              <li><b>收费标准：</b>   
                  <span>
                        <YP:list name="Type" order="typeid" where="keyid=34" id="val" limit="50">
                            <?php echo $charge == $val['typeid'] ? $val['name'] : ''; ?>
                        </YP:list>/㎡
                  </span></li>
              <li style=" width:100%"><b>证书奖励：</b><span>{$reward |str_cut=###,50}</span>         </li>
              <li style=" width:100%"><b>自我评价：</b><span>{$my_introduce |str_cut=###,100}</span>        </li>
           </ul>
         
         </div> 

        <div class="sjspj">
          <ul>
             <a href="index.php?g=User&m=Index&a=eva_post&like=1&mm=User&id={$id}"><li style="background:url(../Public/images/like65.png) no-repeat" ><ul>点赞</ul><ul>{$like_num}</ul></li></a>
             <a href="index.php?g=User&m=Index&a=eva_post&haet=1&mm=User&id={$id}"><li style="background:url(../Public/images/taoy.png) no-repeat" ><ul>一般</ul><ul>{$haet_num}</ul></li></a>
             <a href="javascript:onclick=keep({$id})" id="keep_u" name="{$userid}"><li style="background:url(../Public/images/xin.png) no-repeat" ><ul>收藏</ul><ul class="keep_n">{$keep_num}</ul></li></a>
          </ul>
        
        </div>
    </div></li>
	        </ul>
	      </div>
	      
	    </div>
	   
</div>

<script type="text/javascript">
//收藏
function  keep(id){
	
	
		  var module='User';
		  var url=window.location.search;
		  url='index.php'+url;
		  var title=document.getElementById('realname').innerHTML;
		  var userid=$("#keep_u").attr('name');
		 // alert(userid)
	 $.post(
				  'index.php?g=User&m=Index&a=keep', 
				  {'id':id,
				   'module':module,
				   'url':url,
				   'title':title,
				   
				  },
				  function(res){
					 if(res.length>1000){
						 alert('您还未登录，请您先登录');
						 } else{
							 alert(res);
							  if(res=='收藏成功!'){
							  var keepnum=parseInt($(".keep_n").html())+1;
							  $(".keep_n").html(keepnum);
							  }
					 }
					 
				});
	  
	}


</script>

<div class="auto">
    
</div>

<div class="sjsnav">
  <div class="auto">
    <div class="tkbt sjsmuen">
	    <ul id="tits">
          <li onclick="settin(1)" class="cur">TA的作品</li>
          <li onclick="settin(2)" >TA的帖子</li>
          <li onclick="settin(3)" >TA的收藏</li>
          <li onclick="settin(4)" >业主评价</li>
          <li>预约</li>
        </ul> 
    </div>
 </div>
</div> 
<div style="width:100%;background:#EEE;height:auto !important; margin-top:-10px;"> 
 <div class="main"  style="background:#FFF;">
    <div class="left" style="width:80%">

    <div class="designer" id="con_1">
     {if $case} 
     <volist name="case" id="r" key="k">
        <div class="bd">
                <li><a href="index.php?g=Home&m=Case&a=show&id={$r.id}"><img class="bdimg"  src="{$r.pic}" alt="" /></a></li>
                
                <li class="des_info">
                   <p class="title_sjs"><a href="index.php?g=Home&m=Case&a=show&id={$r.id}">{$r.title}</a></p>
                   <p class="title_sjs1">{$r.describe}</p>
                      <div class="tab">
                        <table>
                          <tbody>
                            <td>类型：
                                <YP:list name="Label" where="genre=17" id="v" limit="50">
                                  <?php echo $r['itemType'] == $v['id'] ? $v['title'] : ''; ?>
                                </YP:list>
                            </td>
                            <td>风格：
                                <YP:list name="Label" where="genre=21" id="v" limit="50">
                                  <?php echo $r['style'] == $v['id'] ? $v['title'] : ''; ?>
                                </YP:list> 
                             </td>
                          </tbody>
                          <tbody>
                            <td>面积：{$r.itemArea}㎡</td>
                            <td>造价：{$r.budget}万元</td>
                          </tbody>
                           <tbody>
                            <td>发布时间：{$r['createtime']|remianday=###}</td>
                            <td></td>
                          </tbody>
                        
                        </table>
                      </div>
                     <p ><a style="color:#f5af58; font-size:14px" href="index.php?m=Case&a=show&id={$r.id}">查看详情</a></p>

                </li>
              </div>
              
            </volist>      
         {else} <div style=" text-align:center; font-size:18px; color:#f5af58; margin-top:200px; ">他还没发布作品</div>{/if}
      <div id="genduo" style=" text-align:center; "><?php if(count($case)==4){ ?><a id="pa" style="font-size:18px;color:#f5af58;"  href="index.php?m=User&a=index&id={$id}&p=1">查看更多</a><?php }?></div>
   </div>
 
  
    
    <div class="designer themeajax" id="con_2" style="display:none">
            
              <div class="tiezi" id="theme">
               
                 {if $list_theme}
                      <volist name="list_theme" id="r">
                         <ul>
                            <li style="width:45%">
                              <a href="index.php?g=Home&m=Zforum_reply&a=index&id={$r['id']}&plateid={$r['plateid']}" target="_blank">{$r['title']|str_cut=###,30}</a>
                            </li>
                                 <li style="width:15%"><img src="../Public/images/order6.png" />&nbsp;&nbsp;&nbsp;{$r['reply_num']}</li>
                                 <li style="width:15%"><img src="../Public/images/windimg44.png" />&nbsp;&nbsp;&nbsp;{$r['hits']}</li>
                            <li style=" text-align:right">
                            {$r['createtime']|toDate=###,'Y-m-d H:i:s'}
                            </li>
                          </ul>
                       </volist>   
                   {else}
                     <div style=" text-align:center; font-size:18px; color:#f5af58; margin-top:200px; ">他还未开始发帖</div>
                   {/if}
                      <div id="keep_g" style=" text-align:center; "><?php if(count($list_theme)==10){ ?><a id="theme_cha" style="font-size:18px;color:#f5af58;"  href="index.php?m=User&a=theme&id={$id}&p=1">查看更多</a><?php }?></div>
                </div>
      
      
   </div> 
   
   
   <div class="designer" id="con_3" style="display:none">
               <div class="tiezi">
               
                 {if $keep}
                      <volist name="keep" id="r">
                         <ul>
                            <li>
                                            
                               {if $r['module']=='Zforum_theme'}
                                   {php 
                                        $arr=explode('m=',$r['url']);
                                        $url=$arr[1];
                                   } 
                                <a href="index.php?m={$url}" >{$r['title']|str_cut=###,30}</a>
                               {else}
                                <a href="index.php?m={$r['module']}&a=show&id={$r['conid']}">{$r['title']|str_cut=###,30}</a>
                               {/if}
                             
                            </li>
                                 <li></li>
                                 <li></li>
                            <li>
                            {$r['createtime']|remianday=###}
                            </li>
                          </ul>
                       </volist>   
                   {else}
                     <div style=" text-align:center; font-size:18px; color:#f5af58; margin-top:200px; ">他还未开始收藏</div>
                   {/if}
                      <div id="keep_k" style=" text-align:center; "><?php if(count($keep)==10){ ?><a id="keep_cha" style="font-size:18px;color:#f5af58;"  href="index.php?m=User&a=keep&id={$id}&p=1">查看更多</a><?php }?></div>
                </div>
   </div>
   <div class="designer" id="con_4" style="display:none">
               
               <div class="com" id="comm">
       
         {if $comment}
              <volist name="comment" id="val">
                   <ul class="wind_xgtnyUL3">
                      <li>
                        <a href="index.php?m=User&a=index&id={$val['userid']}"><img class="wind_header" src="{$val['avatar']}" /></a>
                      </li>
                      <li style="width:600px; margin-left:20px;">
                        <ul class="wind_xgtnyUL4" >
                          <li style="width:100%;">
                            <span style="font-size:18px;line-height:42px;"><a href="index.php?m=User&a=index&id={$val['userid']}">{$val['username']}</a>&nbsp;&nbsp;</span>
                            <span style="color:#999;">{$val.createtime|toDate=###,'Y-m-d H:i:s'}说：</span>
                          </li>
                            <p>{$val['content']}</p>
                        </ul>
                      </li>
                      <div style="clear:both;"></div>
                   </ul>
               </volist>   
           {else}
            <div style=" text-align:center; font-size:18px; color:#f5af58; margin-top:200px; ">还没有人评论哦</div>
           {/if}
              <div id="comment_g" style=" text-align:center; "><?php if(count($comment)==4){ ?><a id="comment_cha" style="font-size:18px;color:#f5af58;"  href="index.php?m=User&a=comment&id={$id}&p=1">查看更多</a><?php }?></div>
        </div>
        {if cookie('groupid')==2}
        <div style="margin-top:20px; margin-left:20px;">
             <form name="myform" id="myform" action="{:URL('User-Index/comment_post')}" method="post" onSubmit="return logina();">
            <input type="hidden" name="conid" value="{$id}"/> 
            <input type="hidden" name="contype" value="User"/>
            <input type="hidden"  name="moduleid" value="{$moduleid}" />
            <input type="hidden"  name="catid" value="{$catid}" />
            <input type="hidden"  name="title" value="{$username}" />
            <input type="hidden"  name="url" value="<?php echo $_SERVER['REQUEST_URI'];?>" />
            <input type="hidden"  name="lang" value="{$langid}" />
            <ul class="wind_xgtnyUL3" style="border:none;">
              <li>
                <img class="wind_header" src="../Public/images/windhead1.png" />
              </li>
              <li>
                <ul >
                  <li style="width:100%;">
                    <textarea style="width:650px; height:100px; margin-left:30px;"  name="content" placeholder="添加评论~~"></textarea>
                  </li>
                </ul>
              </li>
              <div style="clear:both;"></div>
               <input type="submit" value="添加评论" style="cursor: pointer; margin-left:350px;"  />
            </ul>
          </form>
         </div>
         {/if}
   </div>
    
</div>   
    <style>
    .right{  float:right; width:15%; height:700px;}
	.yuyue{  width:100%; margin-top:8px; height:80px;}
    .yuyue ul li{   margin-top:20px; font-size:16px;font-weight:bold;  }
	
    .yuyue p{ text-align:center; color:#CCC; font-size:10px}
	
	.dongt{width:100%; margin-top:15px; height:400px;}
	.zuixin{ height:50px; background:#604328; font-size:26px; line-height:50px; text-align:center; color:#FFF}
	.dongt ul li{height:50px; line-height:50px; margin:0 auto; border-bottom:#999 solid 1px; width:90%}
	.yut{
		border:#604328 solid 2px;
		height:48px; 
		line-height:48px;
		background:url(../Public/images/yuyue.png) no-repeat ;
		background-position:20px 5px;
		text-align:center
		}
    .yut span {
		font-size:26px;
		
		color:#604328;
		
		
		}
    </style>
    <div class="right" style="width:15%">
         <div class="yuyue">
           <ul>
                <a href="index.php?g=user&m=Guestbookadd&a=add&designid={$id}"><li class="yut yuan" ><span>&nbsp;&nbsp;&nbsp;预约</span></li></a>
                
             </ul>
         <p><img src="../Public/images/yuyue_01.png"/>原创作品 &nbsp;<img src="../Public/images/yuyue_01.png"/>货真价实</p>
         </div>
         
         <div class="yuyue" style=" height:60px;">
           <ul>
                
                <li><a href="index.php?m=Page&a=index&id=12"><div class="ss2 yuan"  style=" margin:0 auto; background:#614329;text-align:center;">
                <span style="font-size:26px;color:#FFF;  line-height:50px;">投诉建议</span>
                </div></a></li>
             </ul>
       
         </div>
         
          <div class="dongt">
               <div class="zuixin yuan">最新动态</div>
               <ul>
               {php $r=M('Dynamic')->where('userid='.$id)->order('id desc')->limit('6')->select();foreach($r as $k=>$v):}
                     
                     
                  <li>
                      {if $v['module']=='Zforum_theme'}
                           {php 
                                $arr=explode('m=',$v['url']);
                                $url=$arr[1];
                           } 
                        <a  href="index.php?m={$url}">{$v['title']|str_cut=###,22}</a>
                      {else}
                       <a  href="index.php?m={$v['module']}&a=show&id={$v['conid']}">{$v['title']|str_cut=###,22}</a>
                      {/if}
                  </li>
                 {php endforeach;}
               </ul>
         
          </div>       
        
    </div>
    <div class="clear"></div>
</div>



                                                                                                                                                                                                                                                                                                